<!DOCTYPE html>
<html lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
<meta name="keywords" content="LightYear,LightYearAdmin,光年,后台模板,后台管理系统,光年HTML模板">
<meta name="description" content="Light Year Admin V5是一个基于Bootstrap v5.1.3的后台管理系统的HTML模板。">
<title>{:$configs['SYSTEM_NAME']}</title>
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-touch-fullscreen" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="default">
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/css/materialdesignicons.min.css">
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="__STATIC__/admin/css/style.min.css">

<link rel="stylesheet" type="text/css" href="__STATIC__/common/cch.css">
</head>
  
<body>
<div class="container-fluid">
  
  <div class="row">
    
    <div class="col-lg-12">
      <div class="card">
        <div class="card-body">
          <div class="card-search mb-2-5">
            <table class="table table-bordered">
              <tr>
                <th>任务ID</th>
                <td>{:$data['id']}</td>
                <th>文件名称</th>
                <td>{:$data['name']}</td>
              </tr>
              <tr>
                <th>总数量</th>
                <td>{:$data['total_num']}</td>
                <th>已导入数量</th>
                <td>{:$data['num']}</td>
              </tr>
              <tr>
                <th>创建时间</th>
                <td>{:timeDef($data['ctime'])}</td>
                <th>完成时间</th>
                <td>{:timeDef($data['utime'])}</td>
              </tr>
              <tr>
                <th>类型</th>
                <td>{:$model->getTypeCn($data['type'])}</td>
                <th>状态</th>
                <td>{:$model->getStatusCn($data['status'])}</td>
              </tr>
            </table>

            <form class="search-form" method="get" action="{:url('read')}" >
              
              {include file="html/search" /}
              
            </form>
          </div>
          <div class="card-btns mb-2-5">
            <a class="btn btn-primary me-1 search_btn" href="#!"><i class="mdi mdi-magnify"></i> 搜索</a>
            <button type="button" class="btn btn-default" onclick="location.reload()">刷 新</button>  
            <a class="btn btn-info m-r-5 export_btn" data-action="{:url('export')}" href="javascript:void(0)"><i class="mdi mdi-arrow-collapse-down"></i> 导出</a>
            <a class="btn btn-default" href="{:url('import_task/index')}"><i class="mdi mdi-keyboard-backspace"></i> 返回</a>
          </div>

          
          <div class="table-responsive">
            <table class="table table-bordered">
              <thead>
                <tr>
                  <th>项目名称</th>
                  <th>状态</th>
                  <th>类型</th>
                  <th>备注</th>
                </tr>
              </thead>
              <tbody>
                <?php if (empty($list['data'])): ?>
                  <tr><td colspan="100" class="text-center">暂无数据</td></tr>
                <?php else: ?>
                  <?php foreach ($list['data'] as $k => $vo): ?>
                    <tr>
                      <td>{:$vo['name']}</td>
                      <?php if ($vo['status'] == 1): ?>
                        <td><span style="color: green;">成功</span></td>
                      <?php else: ?>
                        <td><span style="color: red;">失败</span></td>
                      <?php endif ?>
                      <td>{:$model->getImportTypeCn($vo['type'])}</td>
                      <td>{:$vo['msg']}</td>

                    </tr>
                  <?php endforeach ?>
                <?php endif ?>
              </tbody>
            </table>
          </div>

          {$page|raw}
          
          
        </div>
      </div>
    </div>
        
  </div>
  
</div>


<script type="text/javascript" src="__STATIC__/admin/js/jquery.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/popper.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/bootstrap.min.js"></script>
<script type="text/javascript" src="__STATIC__/admin/js/main.min.js"></script>
<!--自定义扩展-->
<script type="text/javascript" src="__STATIC__/common/cch.js"></script>
<script type="text/javascript" src="__STATIC__/common/cch-util.js"></script>
</body>
</html>